﻿
--[[
    @brief    ui logic for personal_center ui
    @author   dragonqiu
    @version  1.0
    @date     2015-03-25
--]]

personal_center_model = 
{
    personal_center = nil;

    player_info = nil;

    uin = 0;

    user_level = 0;

    signIn = false;

    operated_state = 0;

    my_privilege_list = nil;

    new_privilege_list = nil;

    gameend_tips_info = nil;

    gameadded_tips_info = nil;

    game_running_state = 0;

    rootUrl = "";

    task_win_id = nil;

    user_info_rsp_data = {};

    modify_user_info_rsp_data = {};

    saved_user_info_data = nil ;

    --页面窗口Url list 和对应的tpf
    urlList = {
        popupLevelUp = "privilege/popbox.html?name=levelup",
        popupGameOperate = "privilege/popbox.html?name=gameoperate",
    };

    init = function()
        -- body
        personal_center_model.rootUrl = LoadStr("PC_CENTER_ROOT_URL");

    end;

    get_personal_center = function()
        if personal_center_model.personal_center == nil then
            personal_center_model.personal_center =
                base_utility.get_component_adapter("IPersonal_center",
                    "ierd_tgp.personal_center.GetPersonalCenterModule();");
        end
        return personal_center_model.personal_center;
    end;
};

personal_center_model.init();
